<script type="text/javascript" >
<{include file='user/department/js/index.js'}>
</script>
<link rel="stylesheet" type="text/css" href="/css/user/department/index.css"/>
<div id="department_info" title="<{$lang.department}><{$lang.msg}>" style="display:none;">
    <div class="info">
        <div class="validateTips" id="tips"></div>
        <form id="createForm" name="createForm">
            <div>
                <span class="userInfoLeft"><{$lang.department}><{$lang.name}>:</span>
					<span class="userInfoRight">
						<input type="text" name="departName" id="departName"
                               class="text ui-widget-content "/>
					</span>

                <div style="clear: both;">
                </div>
            </div>

            <div>
                <span class="userInfoLeft"><{$lang.superior}>:</span>
					<span class="userInfoRight">
						<select name="supervisor_id" id="supervisor_id" class="ui-widget-content">
                        </select>
					</span>

                <div style="clear: both;">
                </div>
            </div>

            <div>
                <span class="userInfoLeft"><{$lang.sort}>:</span>
					<span class="userInfoRight">
						<input type="text" name="departSort" id="departSort"
                               class="text ui-widget-content " style="width:30%;"/>
						<input type="hidden" name="departId" id="departId"/>
					</span>

                <div style="clear: both;">
                </div>
            </div>
        </form>
    </div>
</div>

<div id="right_confirm" style="display: none;">
    <p style="text-align:center;font-size: 14px;color: red;font-weight: bold;">
        <{$lang.delete_sure}>？
    </p>
</div>

<div class="search_div">
    <div id="iTitle">
        <form id="sForm" name="sForm" onkeypress="if(event.keyCode==13){return false;}">
            <div style="padding:0">
                <{$lang.department}>：<input type="text" name="sName" id="sName" onkeyup="if(event.keyCode==13){submitsearch();}" class="myInput"/>
                &nbsp;&nbsp;<input type="button" onclick="submitsearch()" value="<{$lang.search}>" class="button"/>
                <input type="button" id="create" value="<{$lang.add}>" class="button"/>
                <span id="superDepartment" style="display: none;">
                    <input type="button" onclick="listSuperDeparment()" value="<{$lang.superior}>" class="button"/>
                </span>
            </div>
        </form>
    </div>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="myTab">
    <tbody>
    <tr class="even-tr">
        <th width="10%"><{$lang.No}></th>
        <th><{$lang.department}></th>
        <th width="10%"><{$lang.sort}></th>
        <th width="25%"><{$lang.sub_department}></th>
        <th width="15%"><{$lang.operation}></th>
    </tr>
    </tbody>
    <tbody id="list"></tbody>
</table>
<div class="pagination"></div>     